package cn.myzf.module.register;

import cn.myzf.module.instance.InstanceInfo;

/**
 * @package cn.myzf.module.register
 * @Date Created in 2020/3/8 19:51
 * @Author myzf
 */
public class InstanceRegister implements Register {

    @Override
    public void register(InstanceInfo info, int timeLimit, boolean isSync) {
        System.out.println("调用服务注册 info:" + info);
    }

    @Override
    public void renew(String appName, String instanceId, boolean isSync) {
        System.out.println("调用心跳续约");
    }

    @Override
    public void cancel(String appName, String instanceId, boolean isSync) {
        System.out.println("调用服务下架");
    }

    @Override
    public void eviction() {
        System.out.println("调用服务剔除");
    }
}
